home *** CD-ROM | disk | FTP | other *** search
- //***********************************************************************
- //
- // GridDemo.h
- //
- //***********************************************************************
-
- class CMyApp : public CWinApp
- {
- public:
- virtual BOOL InitInstance ();
- };
-
- class CMainWindow : public CFrameWnd
- {
- private:
- int m_cx;
- int m_cy;
- int m_nWeight;
-
- public:
- CMainWindow ();
-
- protected:
- afx_msg void OnPaint ();
- afx_msg void OnOptionsSettings ();
- afx_msg void OnOptionsExit ();
-
- DECLARE_MESSAGE_MAP ()
- };
-
- class CMyToolTipCtrl : public CToolTipCtrl
- {
- public:
- BOOL AddWindowTool (CWnd*, LPCTSTR);
- BOOL AddRectTool (CWnd*, LPCTSTR, LPCRECT, UINT);
- };
-
- class CSettingsDialog : public CDialog
- {
- private:
- CMyToolTipCtrl m_ctlTT;
-
- public:
- int m_cx;
- int m_cy;
- int m_nWeight;
-
- CSettingsDialog (CWnd* pParentWnd = NULL) :
- CDialog (IDD_SETTINGSDLG, pParentWnd) {}
-
- virtual BOOL OnInitDialog ();
-
- protected:
- virtual void DoDataExchange (CDataExchange*);
- virtual void OnOK ();
- };
-